package com.tsingteng.cosfun.ui.message.chat;

import com.tsingteng.cosfun.bean.ChatBean;
import com.tsingteng.cosfun.bean.UploadReportBean;
import com.tsingteng.cosfun.mvp.view.IView;
/**
 * 私信契约类
 * 常胜
 * 2018.8.16
 * */
public class ChatContract {

    interface IChatPresenter{
        void loginChatData(String type, int page, int source);

        void loginPullBlack(String user_id);

        void loginSendMessage(String mContent, long sid);

        void loginChatRead(String message, int id, int i);
        void getReadPullBlackState(int userId);
        void getCancelPullBlack(long userId);
    }

    interface IChatView extends IView{
        void showChatData(ChatBean listBean);

        void showPullBlackResult(UploadReportBean uploadReportBean);

        void sendMessageResult(Integer integer);

        void showReadResult(Integer integer);
        void showFailResult(int errorCode, String errorMsg);
        void showReadPullBlackStateResult(int data);
        void showCancelPullBlack(int data);
    }
}
